let _uidCnt = 0
const _uidKey = 'uid'
const _guid = () => (_uidCnt++).toString(36) + ':'

export default function(o) {
  if (o) {
    return o[_uidKey] || (o[_uidKey] = _guid())
  }
  return _guid()
}